package com.auction.system.base;

import java.util.List;

/**
 * @ClassName BaseDao接口类
 * @Author 王伟学
 * @Version 1.0
 **/
public interface BaseDao<T,Q> {
    int add(T record);

    int update(T record);

    int delete(Long id);

    T get(Long id);

    List<T> query(Q query);

    List<T> getList(Q query);

    int count(Q query);
}
